package com.borrowed.book.book.entity.domain;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName s_expect_book_img
 */
public class SExpectBookImg implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * s_expect_book表Id
     */
    private Long expectBookId;

    /**
     * 图片存储地址
     */
    @ApiModelProperty(value ="图片URL",dataType = "String")
    private String bookUrl;

    /**
     * 
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * s_expect_book表Id
     */
    public Long getExpectBookId() {
        return expectBookId;
    }

    /**
     * s_expect_book表Id
     */
    public void setExpectBookId(Long expectBookId) {
        this.expectBookId = expectBookId;
    }

    /**
     * 图片存储地址
     */
    public String getBookUrl() {
        return bookUrl;
    }

    /**
     * 图片存储地址
     */
    public void setBookUrl(String bookUrl) {
        this.bookUrl = bookUrl;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SExpectBookImg other = (SExpectBookImg) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getExpectBookId() == null ? other.getExpectBookId() == null : this.getExpectBookId().equals(other.getExpectBookId()))
            && (this.getBookUrl() == null ? other.getBookUrl() == null : this.getBookUrl().equals(other.getBookUrl()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getExpectBookId() == null) ? 0 : getExpectBookId().hashCode());
        result = prime * result + ((getBookUrl() == null) ? 0 : getBookUrl().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", expectBookId=").append(expectBookId);
        sb.append(", bookUrl=").append(bookUrl);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}